home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 276-300 / disk_280 / graph / graphics.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  877b  |  30 lines

  1. /*
  2.  *                 GRAPH, Version 1.00 - 4 August 1989
  3.  *
  4.  *            Copyright 1989, David Gay. All Rights Reserved.
  5.  *            This software is freely redistrubatable.
  6.  */
  7.  
  8. /* Various graphic extensions */
  9. #ifndef BIG_GRAPHICS_H
  10. #define BIG_GRAPHICS_H
  11.  
  12. /* Now, where did I get this idea ??? */
  13. struct TextExtent {
  14.     UWORD te_Width;
  15.     UWORD te_Height;
  16.     struct Rectangle te_Extent;
  17. };
  18.  
  19. /* Draw a line longer than 1008 pixels */
  20. void BigDraw(struct RastPort *rp, long x, long y);
  21. /* Idem, but take account of PenWidth, PenHeight (must be odd) */
  22. void ThickDraw(struct RastPort *rp, long x, long y);
  23. /* Only works for rastport's with no clipping */
  24. void BigSetRast(struct RastPort *rp, long colour);
  25. /* Determine real extent of text(-> Rectangle), return it in TextExtent ext */
  26. void TextExtent(char *text, struct TextFont *font, struct TextExtent *ext);
  27.  
  28. #endif
  29.  
  30.